alst = [1,2,3,3,'one','black']
blst = []
print(alst)
print(blst)
alst = blst.copy()
print(alst)

clst = ['c','php','c++','python']
print('获取clst当中第三个元素:',clst[2])
print('获取clst当中第二个元素:',clst[1])
for x in clst:
    print(x)
clst [2] = 'nodejs'
print(clst)

dlst = ['red','black','write','red','red']
print('查找red元素在列表中的位置索引',dlst.index('red'))
print('查找red元素在列表中出现的次数',dlst.count('red'))
dlst.insert(0,'blue')
print(dlst)
dlst.append('blue')
print(dlst)
dlst.extend(clst)
print(dlst)
dlst.remove('red')
print(dlst)
dlst.pop()
print(dlst)
dlst.pop(0)
print(dlst)
dlst.sort()
print(dlst)

dlst.reverse()
print(dlst)
dlst.copy()
glst = dlst.copy()
print(glst)
glst.clear()
print(glst)
print(dlst.index('black'))
dlst.count('red')
print(dlst.count('red'))
print(dlst.index("red"))
print(dlst[1])
